package com.zzxx.wechat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * t_commodity表
 * </p>
 *
 * @author zzxx
 * @since 2024-04-12
 */
@TableName("t_commodity")
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品ID
     */
    private String pid;

    /**
     * 商品标题
     */
    private String title;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 性别
     */
    private String gender;

    /**
     * is_pro
     */
    private Boolean isPro;

    /**
     * is_new
     */
    private Boolean isNew;

    /**
     * is_revised
     */
    private Boolean isRevised;

    /**
     * 原价
     */
    private BigDecimal price;

    /**
     * 现价
     */
    private BigDecimal discountPrice;

    /**
     * slug
     */
    private String slug;

    /**
     * 分析名
     */
    private String analyticsName;

    /**
     * 商品图片
     */
    private String thumbImage;

    /**
     * 新品地址ID
     */
    private Integer newCommodityAddressId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 是否删除：1删除，其他情况不是删除
     */
    private Boolean isDel;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Boolean getIsPro() {
        return isPro;
    }

    public void setIsPro(Boolean isPro) {
        this.isPro = isPro;
    }

    public Boolean getIsNew() {
        return isNew;
    }

    public void setIsNew(Boolean isNew) {
        this.isNew = isNew;
    }

    public Boolean getIsRevised() {
        return isRevised;
    }

    public void setIsRevised(Boolean isRevised) {
        this.isRevised = isRevised;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public String getSlug() {
        return slug;
    }

    public void setSlug(String slug) {
        this.slug = slug;
    }

    public String getAnalyticsName() {
        return analyticsName;
    }

    public void setAnalyticsName(String analyticsName) {
        this.analyticsName = analyticsName;
    }

    public String getThumbImage() {
        return thumbImage;
    }

    public void setThumbImage(String thumbImage) {
        this.thumbImage = thumbImage;
    }

    public Integer getNewCommodityAddressId() {
        return newCommodityAddressId;
    }

    public void setNewCommodityAddressId(Integer newCommodityAddressId) {
        this.newCommodityAddressId = newCommodityAddressId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }

    @Override
    public String toString() {
        return "Commodity{" +
        "id = " + id +
        ", pid = " + pid +
        ", title = " + title +
        ", description = " + description +
        ", gender = " + gender +
        ", isPro = " + isPro +
        ", isNew = " + isNew +
        ", isRevised = " + isRevised +
        ", price = " + price +
        ", discountPrice = " + discountPrice +
        ", slug = " + slug +
        ", analyticsName = " + analyticsName +
        ", thumbImage = " + thumbImage +
        ", newCommodityAddressId = " + newCommodityAddressId +
        ", createTime = " + createTime +
        ", updateTime = " + updateTime +
        ", isDel = " + isDel +
        "}";
    }
}
